package com.org.kasir.spring;


import java.util.List;
import com.org.kasir.service.BarangService;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Ivan
 */
public class TesterClient {

    public static void main(String[] args) {
        AbstractApplicationContext ctx = new ClassPathXmlApplicationContext("client-ctx.xml", TesterClient.class);
        ctx.registerShutdownHook();
        BarangService barangService = (BarangService) ctx.getBean("barangService");
        System.out.println(barangService);
        List list = barangService.getDaftarBarang();
        //System.out.println(list.size());
    }
}
